package com.youzan.open.sdk.gen.v3_0_0.model;

import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.Maps;
import com.google.common.collect.Multimap;
import com.youzan.open.sdk.model.APIParams;
import com.youzan.open.sdk.model.ByteWrapper;
import com.youzan.open.sdk.model.FileParams;
import java.util.List;
import java.util.Map;
import java.util.Date;

public class YouzanPayAccountingSummaryQueryParams implements APIParams, FileParams  {

    /**
     * 账户号
     */
    private String acctNo;
    /**
     * 汇总时间，多个时间用逗号","分隔
     */
    private String summaryDates;
    /**
     * 汇总类型：D 日汇总；M 月汇总
     */
    private String summaryType;

    public void setAcctNo(String acctNo) {
        this.acctNo = acctNo;
    }

    public String getAcctNo() {
        return this.acctNo;
    }

    public void setSummaryDates(String summaryDates) {
        this.summaryDates = summaryDates;
    }

    public String getSummaryDates() {
        return this.summaryDates;
    }

    public void setSummaryType(String summaryType) {
        this.summaryType = summaryType;
    }

    public String getSummaryType() {
        return this.summaryType;
    }


    public Map<String, Object> toParams() {
        Map<String, Object> params = Maps.newHashMap();
        if (acctNo != null) {
            params.put("acct_no", acctNo);
        }
        if (summaryDates != null) {
            params.put("summary_dates", summaryDates);
        }
        if (summaryType != null) {
            params.put("summary_type", summaryType);
        }
        return params;
    }

    public Multimap<String, ByteWrapper> toFileParams() {
        Multimap<String, ByteWrapper> params = ArrayListMultimap.create();

            return params;
    }


}